//
//  CouponInfo.m
//  EasyToo
//
//  Created by 郑 哲 on 9/6/13.
//
//

#import "CouponInfo.h"
#import "Merchant.h"

@implementation CouponInfo

- (id)initWithDictionary:(NSDictionary *)jsonDictionary
{
    self = [self init];
    if (self) {
        self.couponId = [NSString stringWithFormat:@"%d", GetDictionaryIntDefaultZero(jsonDictionary, @"couponsId")];
        self.name = GetDictionaryStringDefaultNil(jsonDictionary, @"couponsName");
        self.detail = GetDictionaryStringDefaultNil(jsonDictionary, @"detail");
        self.information = GetDictionaryStringDefaultNil(jsonDictionary, @"information");
        self.endTime = GetDictionaryStringDefaultNil(jsonDictionary, @"endTime");
        self.imageUrl = GetDictionaryStringDefaultNil(jsonDictionary, @"imageUrl");

    }
    return self;
}
@end


